import service from "../../utils/request";
// 登录接口
export function login(payload = {}) {
    return service({
        url: "/user/login",
        data: payload,
        method: 'post'
    })
}
// 查询列表接口
export function list(payload = {}) {
    return service({
        url: "/list",
        params: payload,
        method: 'get'
    })
}
// 添加商品接口
export function add(payload = {}) {
    return service({
        url: "/list/add",
        data: payload,
        method: 'post'
    })
}
// 设置商品回显
export function details(payload = {}) {
    return service({
        url: "/list/deatils",
        params: payload,
        method: "get"
    })
}
// 编辑商品
export function list_exits(payload = {}) {
    return service({
        url: "/list/exit",
        data: payload,
        method: 'post'
    })
}
// 上下架接口
export function deletese(payload = {}) {
    return service({
        url: "/list/delete",
        params: payload,
        method: "get"
    })
}
// 查询
export function selects(payload = {}) {
    return service({
        url: "/list/select",
        data: payload,
        method: 'post'
    })
}